import request from '@/utils/request'

// 查询开发商列表列表
export function listDeveloper(query) {
  return request({
    url: '/building/developer/list',
    method: 'get',
    params: query
  })
}

// 查询开发商列表详细
export function getDeveloper(developId) {
  return request({
    url: '/building/developer/' + developId,
    method: 'get'
  })
}

// 新增开发商列表
export function addDeveloper(data) {
  return request({
    url: '/building/developer',
    method: 'post',
    data: data
  })
}

// 修改开发商列表
export function updateDeveloper(data) {
  return request({
    url: '/building/developer',
    method: 'put',
    data: data
  })
}

// 删除开发商列表
export function delDeveloper(developId) {
  return request({
    url: '/building/developer/' + developId,
    method: 'delete'
  })
}
